package com.eightgroups.tces.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.eightgroups.common.utils.excel.ExcelField;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 教师表
 * </p>
 *
 * @author zzc2016.cn
 * @since 2017-11-09
 */
public class Teacher extends Model<Teacher> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 教师工号
     */
	private String tno;
    /**
     * 教师名
     */
	private String tname;
	/**
	 * 教师描述
	 */
	private String tdescription;
    /**
     * 系部id
     */
	@TableField("dept_id")
	private Integer deptId;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 0 删除 1 正常
	 */
	private Integer status;
	/**
	 * 创建时间
	 */
	@TableField(value = "gmt_create" ,fill = FieldFill.INSERT)
	private Date gmtCreate;
	/**
	 * 修改时间
	 */
	@TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
	private Date gmtModified;
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTno() {
		return tno;
	}

	public void setTno(String tno) {
		this.tno = tno;
	}

	public String getTname() {
		return tname;
	}

	public void setTname(String tname) {
		this.tname = tname;
	}

	public Integer getDeptId() {
		return deptId;
	}

	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	public String getTdescription() {
		return tdescription;
	}

	public void setTdescription(String tdescription) {
		this.tdescription = tdescription;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Teacher{" +
				"id=" + id +
				", tno=" + tno +
				", tname=" + tname +
				", deptId=" + deptId +
				", password=" + password +
				", status=" + status +
				", gmtCreate=" + gmtCreate +
				", gmtModified=" + gmtModified +
				", tdescription=" + tdescription +
				"}";
	}
}
